bitkeeper revision 1.1159.1.267 (417a4e88NfHgvkIZt_-wFeTM9-PzAA)
authorkaf24@freefall.cl.cam.ac.uk <kaf24@freefall.cl.cam.ac.uk>
Sat, 23 Oct 2004 12:28:56 +0000 (12:28 +0000)
committerkaf24@freefall.cl.cam.ac.uk <kaf24@freefall.cl.cam.ac.uk>
Sat, 23 Oct 2004 12:28:56 +0000 (12:28 +0000)
XENVERSION can be set by a .extraversion file at root of Linux build tree.

linux-2.4.27-xen-sparse/arch/xen/Makefile
linux-2.6.8.1-xen-sparse/arch/xen/Makefile

index 247ae7b379b9ef2abbda0498ebb846e5945e9e10..9bf5bc6bcebbd101bfbf79a51326611e8f5ec7fb 100644 (file)
@@ -16,7 +16,7 @@
 #           Added '-march' and '-mpreferred-stack-boundary' support
 #
 
-XENVERSION   ?= -xen
+XENVERSION   ?= $(shell cat .extraversion 2>/dev/null || echo "-xen")
 EXTRAVERSION := $(EXTRAVERSION)$(XENVERSION)
 
 # If no .config file exists then use the appropriate defconfig-* file
index 6d234a8bb72170fa2705b4b2f61b551da784088e..6577504ae0fc2de292c940e2aae42d28efbf91c8 100644 (file)
@@ -12,7 +12,7 @@
 # Copyright (C) 2004 by Christian Limpach
 #
 
-XENVERSION   ?= -xen
+XENVERSION   ?= $(shell cat .extraversion 2>/dev/null || echo "-xen")
 EXTRAVERSION := $(EXTRAVERSION)$(XENVERSION)
 
 XENARCH        := $(subst ",,$(CONFIG_XENARCH))